appchooserbutton: Set a CSS name
authornana-4 <hnmaigo@gmail.com>
Sun, 2 Aug 2020 09:26:40 +0000 (18:26 +0900)
committernana-4 <hnmaigo@gmail.com>
Sun, 2 Aug 2020 09:26:40 +0000 (18:26 +0900)
Otherwise it has a CSS name "widget".

gtk/gtkappchooserbutton.c

index 518f2c64be1e06d8ded1d38c781bb77bfd8b51c5..7e81e2c925a78b2c01d2e1118a2f29a524741e46 100644 (file)
  *
  * To track changes in the selected application, use the
  * #GtkAppChooserButton::changed signal.
+ *
+ * # CSS nodes
+ *
+ * GtkAppChooserButton has a single CSS node with the name “appchooserbutton”.
  */
 #include "config.h"
 
@@ -741,6 +745,7 @@ gtk_app_chooser_button_class_init (GtkAppChooserButtonClass *klass)
                   1, G_TYPE_STRING);
 
 
+  gtk_widget_class_set_css_name (widget_class, I_("appchooserbutton"));
 }
 
 static void